﻿/*
 * Created by SharpDevelop.
 * User: Vendan
 * Date: 3/7/2012
 * Time: 8:00 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Drawing;
using System.Windows.Forms;

namespace GMusic
{
	/// <summary>
	/// Description of GMusicLogin.
	/// </summary>
	
	public delegate void delLogin(string account, string password, bool saveInfo);
	
	public partial class GMusicLogin : Form
	{
		
		public event delLogin Login;
		
		public GMusicLogin()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		void BtnLoginClick(object sender, EventArgs e)
		{
			this.Hide();
			Login(txtAccount.Text, txtPassword.Text, chkSaveInfo.Checked);
			this.Close();
		}
	}
}
